package com.dingpeikeji.quickdeer.modules.rentproduct.entity;

import javax.validation.constraints.NotNull;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.dingpeikeji.quickdeer.core.modules.sys.entity.Office;

/**
 * 合作伙伴信用月额度Entity
 * @author wuhao
 * @version 2016-08-08
 */
public class TOfficeCredit extends DataEntity<TOfficeCredit> {
	
	private static final long serialVersionUID = 1L;
	private Integer creditid;		// 主键
	private Office office;		// 公司
	private Integer credityears;		// 信用年份
	private Integer creditmonths;		// 信用月份
	private Double totalcredit;		// 月使用额度
	private Double checked;		// 月结账金额
	
	public TOfficeCredit() {
		super();
	}

	public TOfficeCredit(String id){
		super(id);
	}

	public Integer getCreditid() {
		return creditid;
	}

	public void setCreditid(Integer creditid) {
		this.creditid = creditid;
	}
	
	@NotNull(message="公司不能为空")
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	@NotNull(message="信用年份不能为空")
	public Integer getCredityears() {
		return credityears;
	}

	public void setCredityears(Integer credityears) {
		this.credityears = credityears;
	}
	
	@NotNull(message="信用月份不能为空")
	public Integer getCreditmonths() {
		return creditmonths;
	}

	public void setCreditmonths(Integer creditmonths) {
		this.creditmonths = creditmonths;
	}
	
	@NotNull(message="月使用额度不能为空")
	public Double getTotalcredit() {
		return totalcredit;
	}

	public void setTotalcredit(Double totalcredit) {
		this.totalcredit = totalcredit;
	}
	
	@NotNull(message="月结账金额不能为空")
	public Double getChecked() {
		return checked;
	}

	public void setChecked(Double checked) {
		this.checked = checked;
	}

}